
from rest_framework.generics import ListAPIView
from rest_framework.viewsets import ModelViewSet
from goods.models import SpecificationOption,SPUSpecification
from meiduo_admin.serializers.options_serializers import *
from meiduo_admin.custom_paginations import MyPage

class OptionsViewSet(ModelViewSet):
    queryset = SpecificationOption.objects.all()
    serializer_class = OptionsModelSerializer
    pagination_class = MyPage



from meiduo_admin.serializers.specs_serializers import SpecModelSerializer
class OptionSpecsListView(ListAPIView):
    queryset = SPUSpecification.objects.all()
    serializer_class = SpecModelSerializer